package com.winning.jsyd.controller;

import com.winning.jsyd.ws.ISupHibms;
import com.winning.jsyd.ws.ISupHibmsService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author z_dd@winning.com.cn
 * @date 2019/4/23 11:44
 */
@RequestMapping("test")
@RestController
public class TestController {

    @GetMapping("checkIn")
    public String checkIn() {
        ISupHibmsService iSupHibmsService = new ISupHibmsService();
        ISupHibms iSupHibmsPort = iSupHibmsService.getISupHibmsPort();
        String s = iSupHibmsPort.checkIn("<webService><request> <userCode>320902000000</userCode><unitsCode>320902000000</unitsCode><licenseId>1</licenseId> </request></webService> ");
        System.out.println("===================");
        System.out.println(s);
        System.out.println("===================");
        return s;
    }
}
